import { getCarInfo } from "@/api/getCarInfo";
import mitts from '@/bus'
export const useBodyHttpHook = () => {
  const productList = ref([]);
  getCarInfo().then(
    (res) => {
      productList.value = res;
    },
    (err) => console.log(err)
  );
  return productList;
};
export const useDelHook = (productList) => {
  const delPro = (id) => {
    mitts.emit('delPro',id)
  };
  return delPro;
};
